package gtug.duesseldorf.client;

import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;

public class GenericAsyncCallback<T> implements AsyncCallback<T> {

	/**
	 * client should override this method
	 */
	public void onSuccess(T result) {

	};

	@Override
	public void onFailure(Throwable caught) {

		String msg = (caught != null ? caught.getLocalizedMessage() : "");
		Log.error("error, try restarting jetty...:" + msg, caught);
		
		Window.alert(msg);
	}

}
